package com.amkor.web.ldap.dao;

import java.util.Hashtable;

import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.naming.directory.SearchResult;

public abstract class AbstractJndiLdapSupport {
	
	protected DirContext dirContext;
	protected static String LDAP_INIT_CTX_FACTORY = "com.sun.jndi.ldap.LdapCtxFactory";
	
	protected abstract void initDirContext() throws NamingException;
	protected abstract Hashtable<String, String> getEnv();
	protected abstract NamingEnumeration<SearchResult> search() throws NamingException;
	protected abstract void closeDirContext() throws NamingException;
	
}
